package cn.hwadee.muying.entity;

import cn.hwadee.muying.commons.base.BaseModel;
import cn.hwadee.muying.enums.MailSetting;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 卖家邮箱表
 * </p>
 *
 * @author Jing
 * @since 2018-01-25
 */
@TableName("erp_mail")
public class Mail extends BaseModel {

    private static final long serialVersionUID = 1L;

	/**
	 * 商家ID
	 */
	@TableField("biz_id")
	private Long bizId;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 接收邮件的邮箱
	 */
	private String email;
    /**
     * 接收邮件的邮箱授权码
     */
	@TableField("auth_code")
	private String authCode;
	/**
	 * 接收邮件的邮箱类型
	 */
	private String type;
	/**
	 * 回复邮件的邮箱
	 */
	@TableField("sendmail")
	private String sendMail;

	/**
	 * 回复邮件邮箱的授权码
	 */
	@TableField("sendmail_authcode")
	private String sendMailAuthCode;
    /**
     * 对应卖家
     */
	private String seller;


	/**
	 * 收件邮箱设置
	 */
	@TableField(exist = false)
	private MailSetting recMailSetting;
	/**
	 * 发件邮件设置
	 */
	@TableField(exist = false)
	private MailSetting sendMailSetting;

	public Long getBizId() {
		return bizId;
	}

	public void setBizId(Long bizId) {
		this.bizId = bizId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAuthCode() {
		return authCode;
	}

	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSeller() {
		return seller;
	}

	public void setSeller(String seller) {
		this.seller = seller;
	}
	public MailSetting getRecMailSetting() {
		return recMailSetting;
	}

	public void setRecMailSetting(MailSetting recMailSetting) {
		this.recMailSetting = recMailSetting;
	}

    public String getSendMail() {
        return sendMail;
    }

    public void setSendMail(String sendMail) {
        this.sendMail = sendMail;
    }

    public String getSendMailAuthCode() {
        return sendMailAuthCode;
    }

    public void setSendMailAuthCode(String sendMailAuthCode) {
        this.sendMailAuthCode = sendMailAuthCode;
    }

	public MailSetting getSendMailSetting() {
		return sendMailSetting;
	}

	public void setSendMailSetting(MailSetting sendMailSetting) {
		this.sendMailSetting = sendMailSetting;
	}

	public static final String EMAIL = "email";

	public static final String NAME = "name";

	public static final String AUTH_CODE = "auth_code";

	public static final String SELLER = "seller";

}
